<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Include/esb/nrf_esb_constants.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>



<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF Enhanced Shockburst
   &#160;<span id="projectnumber">version 0.4.2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('nrf__esb__constants_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Include/esb/nrf_esb_constants.h</div>  </div>
</div>
<div class="contents">
<a href="nrf__esb__constants_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * The information contained herein is property of Nordic Semiconductor ASA.</span>
<a name="l00004"></a>00004 <span class="comment"> * Terms and conditions of usage are described in detail in NORDIC</span>
<a name="l00005"></a>00005 <span class="comment"> * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Licensees are granted free, non-transferable use of the information. NO</span>
<a name="l00008"></a>00008 <span class="comment"> * WARRANTY of ANY KIND is provided. This heading must NOT be removed from</span>
<a name="l00009"></a>00009 <span class="comment"> * the file.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * $LastChangedRevision: 14935 $</span>
<a name="l00012"></a>00012 <span class="comment"> */</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef NRF_ESB_CONSTANTS_H__</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_CONSTANTS_H__</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="comment">/*****************************************************************************/</span>
<a name="l00033"></a>00033 <span class="comment">/*****************************************************************************/</span>
<a name="l00034"></a><a class="code" href="group__esb__02__api.html#ga07ed7b06d85a6a7ac423bc02cf41eb49">00034</a> <span class="preprocessor">#define NRF_ESB_HIGH_IRQ_PRIORITY 0        ///&lt; Interrupt priority the Gazell timer and the radio</span>
<a name="l00035"></a><a class="code" href="group__esb__02__api.html#gab03b260f47211f57ed1a8b2e6663f1b8">00035</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_LOW_IRQ_PRIORITY 1         ///&lt; Interrupt priority for Gazell callback functions.</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a><a class="code" href="group__esb__02__api.html#ga82b5492ae93911aad4d0ce6c970fe4ff">00037</a> <span class="preprocessor">#define NRF_ESB_SWI_IRQn SWI0_IRQn              ///&lt; Software interrupt # used for callback functions.</span>
<a name="l00038"></a><a class="code" href="group__esb__02__api.html#gaf233b7deec5a79f7ccef3d5b98867772">00038</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_SWI_IRQ_HANDLER SWI0_IRQHandler ///&lt; Software interrupt handler used for callback functions.</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span>
<a name="l00040"></a><a class="code" href="group__esb__02__api.html#ga32ecc385c3a2265e51b1e2ffaea141cc">00040</a> <span class="preprocessor">#define NRF_ESB_TIMER NRF_TIMER2                               ///&lt; Timer to be used as flywheel timer.</span>
<a name="l00041"></a><a class="code" href="group__esb__02__api.html#ga7ee8455da2667f913a6def10c58fffe4">00041</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_TIMER_PERPOWER_Msk POWER_PERPOWER_TIMER2_Msk   ///&lt; PERPOWER mask for the timer.</span>
<a name="l00042"></a><a class="code" href="group__esb__02__api.html#gaa76745115b15013a372ef4b1eb505d5f">00042</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_TIMER_IRQn TIMER2_IRQn                         ///&lt; Interrupt # for the timer.</span>
<a name="l00043"></a><a class="code" href="group__esb__02__api.html#ga3a693c4c00bbbb66a88969630b20e028">00043</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_TIMER_IRQ_HANDLER TIMER2_IRQHandler            ///&lt; Interrupt handler for the timer.           </span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="comment">// In addition, ESB uses the radio peripheral and radio interrupts.</span>
<a name="l00046"></a>00046                
<a name="l00047"></a>00047 <span class="comment">/*</span>
<a name="l00048"></a>00048 <span class="comment"> * PPI configuration </span>
<a name="l00049"></a>00049 <span class="comment"> */</span>
<a name="l00050"></a><a class="code" href="group__esb__02__api.html#ga7a62e676c4047700f4a218c43e0f1cbc">00050</a> <span class="preprocessor">#define NRF_ESB_PPI_EEP0 (NRF_PPI -&gt; CH0_EEP)      ///&lt; Gazell PPI event endpoint 0</span>
<a name="l00051"></a><a class="code" href="group__esb__02__api.html#ga0171c250426379a744bb7eb124da642a">00051</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_PPI_TEP0 (NRF_PPI -&gt; CH0_TEP)      ///&lt; Gazell PPI task endpoint 0</span>
<a name="l00052"></a><a class="code" href="group__esb__02__api.html#gab9c0abfb1ae03d47d18c289c669e29e8">00052</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_PPI_EEP1 (NRF_PPI -&gt; CH1_EEP)      ///&lt; Gazell PPI event endpoint 1</span>
<a name="l00053"></a><a class="code" href="group__esb__02__api.html#ga5d45ed4c709669a7bcf793501976b0ff">00053</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_PPI_TEP1 (NRF_PPI -&gt; CH1_TEP)      ///&lt; Gazell PPI task endpoint 1</span>
<a name="l00054"></a><a class="code" href="group__esb__02__api.html#ga490f6cff2e8aa906d2b8c880039c42d2">00054</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_PPI_EEP2 (NRF_PPI -&gt; CH2_EEP)      ///&lt; Gazell PPI event endpoint 2</span>
<a name="l00055"></a><a class="code" href="group__esb__02__api.html#gaa3202c41c98e7371ffc3c908b6b48da3">00055</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_PPI_TEP2 (NRF_PPI -&gt; CH2_TEP)      ///&lt; Gazell PPI task endpoint 2</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span>
<a name="l00057"></a><a class="code" href="group__esb__02__api.html#ga774fb8ac957006bc4060fac73e380a0c">00057</a> <span class="preprocessor">#define NRF_ESB_PPI_CHEN_MSK_0_AND_1 (0x03)        ///&lt; Channel enable/disable mask for PPI endpoint 0 and 1.</span>
<a name="l00058"></a><a class="code" href="group__esb__02__api.html#ga7f430819346e57720aa62827cf0108a2">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_PPI_CHEN_MSK_2 (0x04)              ///&lt; Channel enable/disable mask for PPI endpoint 2.</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>
<a name="l00060"></a>00060 <span class="preprocessor">#define NRF_ESB_CONST_PIPE_COUNT 8                 ///&lt; Number of TX pipes (at least one for each Device-Host pairs).</span>
<a name="l00061"></a><a class="code" href="group__esb__02__api.html#ga8116c5685a4648ffc7043cbe4c5279d0">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_CONST_FIFO_LENGTH 3                ///&lt; Maximum number of packets allowed in a TX or RX FIFO.</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_CONST_MAX_TOTAL_PACKETS 6          ///&lt; Maximum number of packets available for reservation at any one time.</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_CONST_MAX_PAYLOAD_LENGTH 32        ///&lt; Maximum allowed payload length in bytes. </span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_CONST_CALLBACK_QUEUE_LENGTH 10     ///&lt; Maximum number of notifications allowed in the callback queue.</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span>
<a name="l00068"></a>00068 <span class="comment">/*****************************************************************************/</span>
<a name="l00070"></a>00070 <span class="comment">/*****************************************************************************/</span>
<a name="l00071"></a><a class="code" href="group__esb__02__api.html#gaf62372ca4e26125f68987d5160b710ab">00071</a> <span class="preprocessor">#define NRF_ESB_CONST_PIPE_COUNT 8                  ///&lt; Number of transmission pipes (at least one for each Device-Host pairs).</span>
<a name="l00072"></a><a class="code" href="group__esb__02__api.html#ga8a1da0840e5d996c3de1b2e8d8106db8">00072</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_CONST_QUEUE_LENGTH 3                ///&lt; Maximum number of packets allowed in a TX or RX queue.</span>
<a name="l00073"></a><a class="code" href="group__esb__02__api.html#ga5b84b59bab5bad85c0c491d0c1851808">00073</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_CONST_MAX_TOTAL_PACKETS 6           ///&lt; Maximum number of packets available for reservation at any one time.</span>
<a name="l00074"></a><a class="code" href="group__esb__02__api.html#ga6fb1ece47082353129db90fd919fe0d2">00074</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_CONST_MAX_PAYLOAD_LENGTH 32         ///&lt; Maximum allowed payload length in bytes. </span>
<a name="l00075"></a><a class="code" href="group__esb__02__api.html#gae5806248d091c410f45d490532df4d1d">00075</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_CONST_CALLBACK_QUEUE_LENGTH 10  ///&lt; Maximum number of notifications allowed in the callback queue.</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00077"></a>00077 <span class="comment">/*****************************************************************************/</span>
<a name="l00079"></a>00079 <span class="comment">/*****************************************************************************/</span>
<a name="l00080"></a>00080 <span class="comment">/*</span>
<a name="l00081"></a>00081 <span class="comment">Corresponds to Legacy nRFgo SDK Gazell config:</span>
<a name="l00082"></a>00082 <span class="comment"></span>
<a name="l00083"></a>00083 <span class="comment">#define GZLL_DEFAULT_ADDRESS_PIPE0 {0xE7, 0xE7, 0xE7, 0xE7, 0xE7}          </span>
<a name="l00084"></a>00084 <span class="comment">#define GZLL_DEFAULT_ADDRESS_PIPE1 {0xC2, 0xC2, 0xC2, 0xC2, 0xC2} // {2, 5, 8, 11, 14}      </span>
<a name="l00085"></a>00085 <span class="comment">#define GZLL_DEFAULT_ADDRESS_PIPE2 3                       </span>
<a name="l00086"></a>00086 <span class="comment">#define GZLL_DEFAULT_ADDRESS_PIPE3 4                        </span>
<a name="l00087"></a>00087 <span class="comment">#define GZLL_DEFAULT_ADDRESS_PIPE4 5                        </span>
<a name="l00088"></a>00088 <span class="comment">#define GZLL_DEFAULT_ADDRESS_PIPE5 6</span>
<a name="l00089"></a>00089 <span class="comment">*/</span>
<a name="l00090"></a>00090 
<a name="l00091"></a><a class="code" href="group__esb__02__api.html#gafcef99e6edc62dfef2911bfdc890e0ca">00091</a> <span class="preprocessor">#define NRF_ESB_DEFAULT_BASE_ADDRESS_0 0xE7E7E7E7                  ///&lt; Default base address 0.</span>
<a name="l00092"></a><a class="code" href="group__esb__02__api.html#ga59cfb19c9b5e315a74ba07645568703e">00092</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_BASE_ADDRESS_1 0xC2C2C2C2                  ///&lt; Default base address 1.</span>
<a name="l00093"></a><a class="code" href="group__esb__02__api.html#ga03c8211748233e852a98b58d4d238e85">00093</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_PREFIX_BYTE_0 0xE7                         ///&lt; Default prefix address pipe 0.    </span>
<a name="l00094"></a><a class="code" href="group__esb__02__api.html#ga5fa72f4a868d2810d07976d4db47cc69">00094</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_PREFIX_BYTE_1 0xC2                         ///&lt; Default prefix address pipe 1.</span>
<a name="l00095"></a><a class="code" href="group__esb__02__api.html#gac9aad48851e99c8eafd086c320801863">00095</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_PREFIX_BYTE_2 0xC3                         ///&lt; Default prefix address pipe 2.</span>
<a name="l00096"></a><a class="code" href="group__esb__02__api.html#ga9a3214ad87752cb8e30d67255b33ae11">00096</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_PREFIX_BYTE_3 0xC4                         ///&lt; Default prefix address pipe 3.</span>
<a name="l00097"></a><a class="code" href="group__esb__02__api.html#ga6eb892cb0f98c30329fbcc9cd556944e">00097</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_PREFIX_BYTE_4 0xC5                         ///&lt; Default prefix address pipe 4.</span>
<a name="l00098"></a><a class="code" href="group__esb__02__api.html#gaebba95b6da169fcad5d8cef4ac2cb4a8">00098</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_PREFIX_BYTE_5 0xC6                         ///&lt; Default prefix address pipe 5.</span>
<a name="l00099"></a><a class="code" href="group__esb__02__api.html#gaca19d9659ad39a272547d2d353a68eb1">00099</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_PREFIX_BYTE_6 0xC7                         ///&lt; Default prefix address pipe 6.</span>
<a name="l00100"></a><a class="code" href="group__esb__02__api.html#ga1c9f91ca88c6eb6032f9061563851456">00100</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_PREFIX_BYTE_7 0xC8                         ///&lt; Default prefix address pipe 7.</span>
<a name="l00101"></a><a class="code" href="group__esb__02__api.html#gae63bac563a4c48309250c4b88d75be12">00101</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_BASE_ADDRESS_LENGTH NRF_ESB_BASE_ADDRESS_LENGTH_4B  ///&lt; Default on-air base address length.</span>
<a name="l00102"></a><a class="code" href="group__esb__02__api.html#ga02efa3d8eedc9a6597f02a14812b915c">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_CRC_LENGTH NRF_ESB_CRC_LENGTH_1_BYTE           ///&lt; Default CRC length.</span>
<a name="l00103"></a><a class="code" href="group__esb__02__api.html#ga95eaf88252a4ee552748a5acca75c162">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_ENABLED_PRX_PIPES 0xFF                         ///&lt; Default enabled RX pipes.</span>
<a name="l00104"></a><a class="code" href="group__esb__02__api.html#ga3fefe78b8e50dec6841ecddecbe66a53">00104</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_MAX_NUMBER_OF_RETRANSMITS 15                   ///&lt; Default number of retransmits.</span>
<a name="l00105"></a><a class="code" href="group__esb__02__api.html#gade82402b8bef1671f4238847d33f239f">00105</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_OUTPUT_POWER NRF_ESB_OUTPUT_POWER_0_DBM        ///&lt; Default TX output power.</span>
<a name="l00106"></a><a class="code" href="group__esb__02__api.html#gadaaf65ba40ad9f9142c2f1a550e877b5">00106</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_DATARATE NRF_ESB_DATARATE_2_MBPS               ///&lt; Default datarate.</span>
<a name="l00107"></a><a class="code" href="group__esb__02__api.html#ga8eb44cd88075f59c0dc468fa991496a2">00107</a> <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_RETRANSMIT_DELAY 600                           ///&lt; Default retransmit delay.   </span>
<a name="l00108"></a>00108 <span class="preprocessor"></span><span class="preprocessor">#define NRF_ESB_DEFAULT_CHANNEL  (10)</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span>
<a name="l00114"></a>00114 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="nrf__esb__constants_8h.html">nrf_esb_constants.h</a>      </li>

    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
